Why doesn't my optimistic lock implementation work with two competing requests

visit shbcf.ru